package com.yuchen.ishop.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 收货地址
 */
@Table("t_buyer_addresses")
public class BuyerAddress implements Serializable {

    @Id
    private Long id;

    @Column("buyer_id")
    private Long buyerId;

    @Column("address_province_id")
    private Long addressProvinceId;

    @Column("address_city_id")
    private Long addressCityId;

    @Column("address_area_id")
    private Long addressAreaId;

    @Column("address_street_id")
    private Long addressStreetId;

    @Column("address_detail")
    private String addressDetail;

    @Column("contact_tel")
    private String contactTel;

    @Column("contact_name")
    private String contactName;

    @Column("state")
    private Short state;

    @Column("create_time")
    private Timestamp createTime;

    @Column("update_time")
    private Timestamp updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    public Long getAddressProvinceId() {
        return addressProvinceId;
    }

    public void setAddressProvinceId(Long addressProvinceId) {
        this.addressProvinceId = addressProvinceId;
    }

    public Long getAddressCityId() {
        return addressCityId;
    }

    public void setAddressCityId(Long addressCityId) {
        this.addressCityId = addressCityId;
    }

    public Long getAddressAreaId() {
        return addressAreaId;
    }

    public void setAddressAreaId(Long addressAreaId) {
        this.addressAreaId = addressAreaId;
    }

    public Long getAddressStreetId() {
        return addressStreetId;
    }

    public void setAddressStreetId(Long addressStreetId) {
        this.addressStreetId = addressStreetId;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
